package com.cskaoyan.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * params属性 请求参数限定 and
 * @author stone
 * @date 2022/10/06 10:24
 */
@RequestMapping("params")
@Controller
public class ParameterLimitController {

    // localhost:8080/params/login?username=songge&password=niupi
    @RequestMapping(value = "login",params = {"username","password"})
    @ResponseBody
    public String login() {
        return "ok";
    }
}
